package com.qf.controller;


import com.qf.pojo.ResultData;
import com.qf.service.ShoppingCarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("shoppingCar")
public class ShoppingCarController {

    @Autowired
    private ShoppingCarService shoppingCarService;

    @GetMapping("listBycIds/{userId}")
    public ResultData shoppingCarOrderItem(@PathVariable Integer userId, @RequestParam List<Integer> cIds){

        return  shoppingCarService.shoppingCarListBycIds(userId,cIds);
    }

}
